<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的预售订单 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
/* function del(id,cl){
	var ids=new Array(1);
	ids[0]=id;
	$.post(
		"memberdelete.jspx",
		{yushouId:ids},
		{cl:cl},
		function(data){
			if(data.success==true){				
				//location.reload();
				alert("1111");
				window.location.reload();
			}
		});
} */
</script>
</head>
<body>
[#include "../include/会员中心页头顶栏.html"/]
<div class="w1168">
  [#include "会员中心_导航.html"/]
     <div id="container" class="user_right">
         <div class="user_title_r">
			<div class="user_title_l">我的预售订单</div>
        </div>
        <div class="clear10"></div>
        
        <div class="orderlist" style=" font-size:12px; font-family:Arial; color:#4b4b4b;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td width="70" align="center" bgcolor="#f0f0f0">订单编号</td> 
        <td height="32" align="center" bgcolor="#f0f0f0">预约商品</td>                      
        <td width="180" align="center" bgcolor="#f0f0f0">预约时间</td>
        <td width="100" align="center" bgcolor="#f0f0f0">状态</td>
        <td width="220" align="center" bgcolor="#f0f0f0">操作</td>
        </tr>
        </table>
        [@yushouOrder_page memberId=member.id yuStatus=yuStatus createTime=createTime count='10' pageNo=pageNo]
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
        [#if tag_list?size gt 0]
        [#list tag_list as yushou]
        <tr>
        <td height="40" width="40" align="center" bgcolor="#FFFFFF">${yushou.id!}</td> 
        <td height="60" align="center" bgcolor="#FFFFFF"><span title="${yushou.productid.name!}">[@text_cut s=yushou.productid.name!?html len=20 append="..."/]</span></td>           			
        <td width="180" align="center" bgcolor="#FFFFFF">${yushou.createdate!}</td>
        <td width="100" align="center" bgcolor="#FFFFFF">[@s.m "shopYushou.ystatus.${yushou.ystatus!}"/]</td>
        <td width="220" align="center" bgcolor="#FFFFFF">
        [#if yushou.productid.yushou??&&yushou.productid.yushou==true&&yushou.productid.weikuanenddate??&&yushou.productid.weikuanenddate gt .now&&yushou.ystatus=1]
			[#if yushou.productid.weikuanbegindate??&&yushou.productid.weikuanbegindate lt .now]
			<form id="jvForm" action="${base!}/yuShouWkpay.jspx" method="post">
			<input type="hidden" id="yushou" value="${yushou.id!}" name="yushouId" />
			<input type="hidden" id="code" value="${yushou.pay.code!}" name="code"/>
			<input type="submit" class="settlement" value="去付尾款 "/>						
			</form>
			[#elseif yushou.productid.weikuanbegindate??&&yushou.productid.weikuanbegindate gt .now]
			等待付尾款时间开始
			[/#if]
        [#elseif yushou.productid.yushou??&&yushou.productid.yushou==true&&yushou.productid.yushouenddate??&&yushou.productid.yushouenddate gt .now&&yushou.ystatus=0]
			<form id="jvForm" action="${base!}/payYushou.jspx" method="post">
			<input type="hidden" value="${yushou.id!}" name="orderId" />
			<input type="submit" class="settlement" value="去付定金 "/>		  				
			</form>
        [#elseif yushou.ystatus=2]
			<div class="clear"></div>
			预售商品成功,等待卖家发货<a href="viewYushouYes.jspx?yuCode=${yushou.code!}&cl='tbg_12'">查看卖家进度</a>
		[#else]
			<div class="clear"></div>
			预售活动已经结束
        [/#if]
        <div class="clear"></div>
        <a href="myYushouView.jspx?yushouId=${yushou.id!}&cl='tbg_12'" style="color:#005FA2;">详情</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;[#if yushou.productid.yushou??&&yushou.productid.yushou==true&&yushou.productid.weikuanenddate??&&yushou.productid.weikuanenddate gt .now&&yushou.ystatus=1]
        <a href="${base!}/yushou/memberdelete.jspx?yushouId=${yushou.id!}&cl='tbg_12')" onclick="if(!confirm('这是已支付定金但支付尾款时间尚未结束的预售订单,你删除后定金将不返还，且订单商品无法再发给您!')){return false;}" style="color:#F30;">删除</a>
        [#else]
        <a href="${base!}/yushou/memberdelete.jspx?yushouId=${yushou.id!}&cl='tbg_12')" onclick="if(!confirm('确认删除?')){return false;}" style="color:#F30;">删除</a>
        [/#if]
        </td>
        </tr>
        <tr>
        <td height="1" colspan="4" bgcolor="#e7e7e7"></td>
        </tr>
        [/#list]
        [#else]
        <div class="zwsj">暂无预售订单记录</div>
        [/#if]
        </table>
        <div class="pageNumber">[@pagination_style sysPage='3'/]</div>
        [/@yushouOrder_page]
        </div>
    	
     </div>
     <div class="clear20"></div>
</div>
[#include "../include/footer_information_bar.html"/]
</body>
</html>